package com.example.administrator.timertask;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.Toast;

import com.example.administrator.timertask.listener.MyClickListener;
import com.example.administrator.timertask.view.Like;
/**
 * 作者： njb
 * 时间： 2018/12/13 14:55
 * 描述：
 * 来源：
 */
public class LikeActivity extends AppCompatActivity {
    private Like like;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_like);
        initView();
    }

    private void initView() {
        like = findViewById(R.id.like);
        like.setOnClickListener(new MyClickListener.MyClickCallBack() {
            @Override
            public void oneClick() {
                Toast.makeText(LikeActivity.this,"点击事件",Toast.LENGTH_SHORT).show();
            }

            @Override
            public void doubleClick() {
                Toast.makeText(LikeActivity.this,"多击事件",Toast.LENGTH_SHORT).show();
            }
        });
    }
}

